package com.cci.kangdao.crmapi;

public class CRMServiceConst {

    /*
     *DBU同步专家解决方案到APP
     */
    public static final String CRMEXPERTSOLUTION_TOAPP = "synEscalationExpertSolution";
    /**
     * 0、省市县
     */
    public static final String PROVICE_DEFAULT = "北京市";
    public static final String CITY_DEFAULT = "北京城区";
    public static final String AREA_DEFAULT = "东城区";

    // 400坐席 400主管取消服务工单
    public static final String CRM_400_CANCEL_WORKORDER = "crmCallAPPCancelWO";

    // DDCR发起取消经销商授权接口
    public static final String DDCR_CANCEL_STATIONAUTHORIZATION = "ddcrCancelStationAuthorization";

    public static final String CRMTOKEN_HOSTURL_DCEC = "SFTOKEN_HOSTURL_DCEC";

    /**
     *同步工单多故障信息
     */
    public static final String SYNC_FAULTINFO_TOCRM = "syncFaultInfo";

    /***
     * 故障表示
     */
    public static final String FAULT = "fault";
	/**
	 * 1、JV Host
	 */

//    https://crm.dcec.com.cn/crm/crmchinaapp  CRM正式环境地址
	public static final String DCEC = "DCEC";
    public static final String XCEC = "XCEC";
    public static final String BFCEC = "BFCEC";
    public static final String DBU = "CCI";
    public static final String CCEC = "CCEC";
    public static final String ECummins = "ECummins";
    
    public static final String DCEC_TEST = "东风康明斯";
    public static final String XCEC_TEST = "西安康明斯";
    public static final String BFCEC_TEST = "福田康明斯";
    public static final String DBU_TEST = "康明斯(中国)";

    public static final String HOST_XCEC = "baidu.com";
    public static final String HOST_BFCEC = "baidu.com";
	
    /**
     * 2、HTTP Method （GET、POST、PUT、DELETE等）
     */
    public static final String CRMGET = "CRM_SERVICE_GET";
    public static final String CRMPOST = "CRM_SERVICE_POST";
    public static final String CRMPUT = "CRM_SERVICE_PUT";
    public static final String CRMDELETE = "CRM_SERVICE_DELETE";
    
    public static final int CHANNEL_VERIFY_FAILURE = 1;
    public static final String CRM_URL_HTTPS = "https";
    public static final String CRM_URL_HTTP = "http";
    public static final int CRM_RESPONSE_CODE_SUCCESS = 200;
    public static final int CRM_SYNC_CODE_SUCCESS = 0;
    public static final String CRM_RESPONSE_ENCODE_UTF8 = "utf-8";
    public static final boolean IS_CRMHEADER_ADDMD5 = true;
    // request interface funName
    public static final String CRM_REQUEST_HEADER_TOKEN = "token";
    public static final String CRM_REQUEST_FUNNAME = "funName";
    public static final String CRM_REQUEST_COMPANY = "company";
    public static final String CRM_REQUEST_SYSTEMTIME = "systemTime";
    public static final String CRM_REQUEST_PARAMS = "params";
    public static final String[] CHANNELS = {"DCEC","XCEC","BFCEC","CCI","CCEC"};
    
    /**
     * 3、HTTP method interface string
     */
    public static final String VERIFY_ENGINEINFO = "getEngineInfo";
    public static final String SYNC_WORKORDERPICS = "syncWorkOrderPics";
    public static final String SYNC_TIMEOUTACCOMPLISH = "syncTimeoutAccomplish";

    public static final String GET_APPROVALLEVEL = "syncPositionLevel";
    public static final String SYNC_APPORDERINFO_TOCRM = "syncAppWorkOrderInfo";

    public static final String SYNC_CRMWARRANTY_INFO = "syncCRMWarrantyInfo";

    public static final String SYNC_INDIVIDUAL_CASES_SAVE = "syncIndividualCasesSave";

    /*
     * 主动升级数据同步到SF
     */
    public static final String SYNC_ESCALATION_TOCRM = "DBU_UpgradeCaseForApp";


    public static final String GET_RECOMMENDEDSERVICESTATIONS = "syncReStationInfos";
    public static final String UPDATE_SERVICESTATIONLONANDLATINFOS = "syncStationLatAndLon";
    public static final String SYNC_ORDERSTATUS_TOCRM = "syncAppWorkOrderStatus";
    public static final String SYNC_USERAPPRAISALINFO_TOCRM = "syncUserAppraise";
    public static final String SYNC_EXCEPTIONINTERFACEINFOS_TOCRM = "syncAppExceptions";
    public static final String UPDATE_STATIONADDRESS_TOCRM = "updateStationLatAndLon";
    public static final String SYNC_DRCONCLUSION_TOCRM = "drConclusion";
    public static final String SYNC_ACTIVEDIAGNOSTICS_TOCRM = "activeDiagnostics";
    //DCEC重传全量状态接口名
    public static final String SYNC_ORDERALLSTATUS_TOCRM = "syncAppWorkOrderAllStatus";

    public static final String CRMCREATWORKORDER_TOAPP = "syncCRMWorkOrderInfo";
    public static final String CRMGETWORKORDERPICTURES_FROMAPP = "getWorkOrderPics";
    public static final String CRMGETTRACKINFO_FROMAPP = "trackInfo";
    public static final String CRMSYNCSTATIONINFO_TOAPP = "syncStationInfo";
    public static final String CRMSYNCSTATIONUSERINFO_TOAPP = "syncStationUserInfo";
    public static final String CRMSYNCPOSITIONINFO_TOAPP = "synPositionInfo";
    public static final String CRMSYNCEXCEPTIONS_TOAPP = "syncCRMExceptions";
    public static final String CRMSYNCWORKORDERINFO_TOAPP = "updateCRMWorkOrderInfo";
    public static final String CRMSYNCUPDATEEXCEPTIONWORKORDER_TOCRM = "updateExceptionAPPWorkOrderInfo";
    public static final String CRMSYNCCRMORDERSTATUS_TOAPP = "syncCRMOrderStatus";  //ljk   2.2.4 CRM系统同步工单状态到APP系统
    public static final String CRMSYNCQUALIFICATIONINFO_TOAPP = "syncQualificationInfo";
    public static final String CRMUPDATEENGINEINFO_TOAPP = "updateEngineInfo";

    public static final String CCEC_SYNC_PART_INFO_TO_APP = "syncPartInfos";
    public static final String CCEC_SYNC_ENGINE_INFO_TO_APP = "getEngineInfo";
    public static final String CCEC_SYNC_ORDER_INFO_TO_APP = "syncCCSSWorkOrderInfo";
    public static final String CCEC_SYNC_ORDER_STATUS_TO_APP = "syncCCSSOrderStatus";
    public static final String CCEC_SYNC_EXCEPTION_INFO_TO_APP = "syncCCSSExceptions";
    public static final String CRM_SYNC_ERROR_PICTURES_TO_APP = "syncErrorPictures";
    public static final String CRM_SYNC_GETDIAGNOSTICMSGBYDRORDERNO = "getDiagnosticMsgByDROrderNo";  //2.19根据诊断工单编号获取相关信息ljk
    public static final String CRM_SYNC_GETSMNBYESN = "getSMNByESN";  //lqz 根据CRM提供的ESN，返回SMN
    //ljk 2.8.0运维  dbu渠道app发起异常关闭申请    crm同意或者驳回    以及异常关闭服务工单三合一功能
    public static final String CRM_SYNC_WOCLOSEREQUEST = "syncWOCloseRequest";
    
    public static final String CRM_SYNC_SERVICESUBTYPE = "syncWorkOrderInfo"; // 同步服务工单服务子类型

    //ljk sprint52同步srt信息到crm
    public static final String SYNC_WOSRTANDWFC_TOCRM = "syncWOSrtAndWfc";

    /**
     * 4、审批角色（服务经理、商务处主任、客户服务经理）
     */
    public static final String CRMAPPROVEROLE_INAPP_ONE = "区域服务经理";
    public static final String CRMAPPROVEROLE_INAPP_TWO = "商务处主任";
    public static final String CRMAPPROVEROLE_INAPP_THREE = "客户服务经理";
    public static final String CRMAPPROVEROLE_INAPP_DBU = "区域工程师";

    /**
     * 5、职位创建者Creator 1 DCEC 2 XCEC 3 DBU
     */
    public static int DCEC_CREATER = 1;
    public static int XCEC_CREATER = 2;
    public static int DBU_CREATER = 3;

    /**
     * 6、工单异常信息
     */
    public static final String KEY_ORDERINFO_EXCEPTIONAL_APP_XCEC = "KEY_ORDERINFO_EXCEPTIONAL_APP_XCEC";
    public static final String KEY_ORDERINFO_EXCEPTIONAL_APP = "KEY_ORDERINFO_EXCEPTIONAL_APP";
    public static final String KEY_ORDERSTATUS_EXCEPTIONAL_APP_XCEC = "KEY_ORDERSTATUS_EXCEPTIONAL_APP_XCEC";
    public static final String KEY_ORDERSTATUS_EXCEPTIONAL_APP = "KEY_ORDERSTATUS_EXCEPTIONAL_APP";
    public static final String KEY_ORDERAPPRAISE_EXCEPTIONAL_APP = "KEY_ORDERAPPRAISE_EXCEPTIONAL_APP";
    public static final String KEY_ORDERACTIVE_DIAGNOSTICS_EXCEPTIONAL_APP = "KEY_ORDERACTIVE_DIAGNOSTICS_EXCEPTIONAL_APP";
    public static final String KEY_DR_CONCLUSION_EXCEPTIONAL_APP = "KEY_DR_CONCLUSION_EXCEPTIONAL_APP";
    public static final String KEY_DCEC_ORDERSTATUS_APP = "OrderStatus_";
    public static final String KEY_XCEC_ORDERSTATUS_APP = "XCEC_OrderStatus_";
    // CCEC异常工单前缀
    public static final String KEY_CCEC_EXCEPTION_SYNC = "ExceptionSync_";

    // CCEC 同步功能模块
    public static final String SYNC_ORDER_INFO = "syncOrderInfo";
    public static final String SYNC_ORDER_STATUS = "syncOrderStatus";
    public static final String SYNC_TROUBLE_SHOOTING_SUMMARY = "syncTroubleshootingSummary";
    public static final String SYNC_ORDER_AFFIRM = "syncOrderAffirm";
    public static final String SYNC_CONFIRMATION_REPAIR = "syncConfirmationRepair";
    public static final String SYNC_REMOTE_SOLUTION = "syncRemoteSolution";

    // APP同步客户故障位置到CRM
    public static final String SYNC_FAULT_LOCATION_TOCRM = "syncFaultLocationToCRM";
    
    
    // CRM调用App接口发送信息
    public static final String CRM_CALL_APP_SENDSMS = "crmCallAPPSendSMS";
    
    // XCEC同步超时原因到CRM
    public static final String SYNC_OVERTIMEREASON_TOXCECCRM = "UpsertWorkOrder";
    

    public static final String DATA_CRMPARAMS_EXCEPTIONAL_APP = "DATA_CRMPARAMS_EXCEPTIONAL_APP";
    public static final String DATA_WORKORDER_PARAMS_EXCEPTIONAL_APP = "DATA_WORKORDER_PARAMS_EXCEPTIONAL_APP";
    public static final String CHANNEL_INTERFACE_EXCEPTIONAL_APP = "CHANNEL_INTERFACE_EXCEPTIONAL_APP";
    public static final String CURRENTTIME_INTERFACE_EXCEPTIONAL_APP = "CURRENTTIME_INTERFACE_EXCEPTIONAL_APP";
    // 缓存异常消息功能模块
    public static final String DATA_CRMPARAMS_FUNCTION = "DATA_CRMPARAMS_FUNCTION";

    /**
     * 7、CCI CRM token and host
     */
    public static final String CRMTOKEN_HOSTURL_CCI = "CRMTOKEN_HOSTURL_CCI";
    public static final String CRMTOKEN_HOSTURL_XCEC = "CRMTOKEN_HOSTURL_XCEC";
    public static final String CRMTOKEN_HOSTURL_CBU = "CRMTOKEN_HOSTURL_CBU";


    /**
     * 8、CSU接口名称
     */
    public static final String CSU_GET_VEHICLEUPGRADESSTATUS = "getVehicleUpgradeStatus";
    public static final String CSU_GET_VEHICLESHEALTHINFO = "getVehiclesHealthInfo";
    public static final String CSU_GET_UPGRADEHISTORY = "getUpgradeHistory";
    public static final String APP_GET_TOTALVEHICLES = "totalVehicles";

    
    
    // xcec获取主机厂、发动机系列、发动机用途
    public static final String GET_OEM_INFO_FROM_CRM_XCEC = "AppWorkOrder";
    // xcec根据esn获取主机厂、发动机系列、发动机用途
    public static final String GET_OEM_INFO_FROM_CRM_ESN_XCEC = "AppWorkOrderFindEngine";
    // xcec渠道同步售时工单到crm
    public static final String SYNC_WORKORDER_TO_CRM_XCEC = "AppWorkOrderSellingTime";

    // 主动升级相关
    public static final String SYNC_ESCALATIONORDERDETAIL_TOCRM = "***********";
    public static final String ESCALATION_SYNC_EXCEPTION = "ESCALATION_SYNC_EXCEPTION_";
    public static final String ESCALATION_SYNC_EXCEPTION_DETAIL = "ESCALATION_SYNC_EXCEPTION_DETAIL";

    //APP验证站长、技师、信息员在SF是否存在
    public static final String GET_VALIDATIONUSERINFO_FROM_CRM = "validationUserInfo";
    //APP验证资质接口
	public static final String GET_VALIDATIONCERT_FROM_CRM = "validationCert";

    //获取服务站的接口
    public static final String GET_DEALERS_BY_CASE_ID = "getDealersByCaseId";

    //APP系统请求CRM系统获取标准工时与失效代码
    public static final String GET_SRTANDWFC = "getSrtAndWfc";


    //获取campaign任务列表
    public static final String CHECK_CAMPAIGN_TASK = "checkCampaignTask";

    //同步campaign状态信息到sf
    public static final String SYNC_DEALER_CAMPAIGN_OPTION_TO_SF = "syncDealerCampaignOptionToSF";

    //同步campaign维修完成信息到sf
    public static final String SYNC_DEALER_CAMPAIGN_STATUS_TO_SF = "syncDealerCampaignStatusToSF";
}
